class_name RoomGenerator

#region 属性
var map_manager:MapManager
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
#endregion
#region 公共方法
func generate_room(room_info:RoomInfo,room_args:Dictionary) -> BaseRoom:
	var room = room_info.room_scene.instantiate() as BaseRoom
	room_args.get("Map").add_child(room)
	room.init_room(room_info,room_args)
	return room
#endregion
#region 私有方法
#endregion
#region 生命周期函数
func _init(map_manager:MapManager) -> void:
	self.map_manager = map_manager
#endregion
